<?php

require_once __DIR__ . '/functions.php';

$params = [
    'hash' => '0xdc31b935d0e2cb5cce4b1fab2b0f4aece47f762f8b3e8b681594fb3dbe5d907b',
];

$json = httpPost('scs_contractAddressByHash', $params);
$address = $json['result'] ?? '';
// 0xfd2a7754c241624bf48b2bc3a160b9a2f309355e
// 0xb4b9f935bf7eb61a3e1c2fdea9d60693dd67b4c5
var_dump('address: ' . $address);